<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>产品列表</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/product.css">
	<style>
		.content-table-two{
			width: 1080px;
		}
		.content-table-two tbody tr td {
		    max-width: 300px;
		    min-width: 30px;
		}
		.content-btn {
		    border-top: 1px solid #e6e6e6;
		    padding-top: 20px;
		    padding-bottom: 5px;
		}
		.export-btn {
		    float: left;
		    margin-top: 0px;
		    margin-right: 12px;
		}
	</style>
</head>
<body>
	<div class="main-content">
		<div class="main-bg">
			<p class="content-title">产品列表</p>
			<form id = "productForm">
				<input type = "hiden" name = "type" />
				<input type = "hiden" name = "investDirect" />
				<div class="content-form">
					<ul>
						<li><span class="text-name">产品名称：</span><input type="text" name = "name"></li>
						<li><button class="btn-style-two" id = "productClick">搜索</button>&nbsp;&nbsp;&nbsp;<button class="btn-style-two">重置</button></li>
					</ul>
					<ol>
						<li id = "achieveCompare"><em>业绩比较基准</em><span class="checkActive">不限</span><span>0-5%(含)</span><span>6-10%(含)</span><span>11-15%(含)</span><div class="munEare"><input type="text">%<=X=><input type="text">%</div></li>
						<li id = "type"><em>产品类型</em><span>不限</span><span class="checkActive">契约型基金</span><span>有限合伙</span><span>信托计划</span><span>资管计划</span></li>
						<li id = "investDirect"><em>投资方向</em><span>不限</span><span>二级市场</span><span class="checkActive">债权投资</span><span>股权投资</span><span>海外投资</span><span>其他服务</span></li>
					</ol>
				</div>
			</form>
			<div class="content-list">
				<div class="info-list">
					<div class="content-btn">
						<a href="newProduct.html" class="export-btn clearfix">新建项目</a>
						<a href="newProject.html" class="export-btn clearfix">启动营销项目</a>
					</div>
					<table radio = "true"  dataId = "id" selectType="true" bindForm = "productForm" bindClick = "productClick" dataAction = "/market/product/list" datatable = "true" class="content-table-two matop" cellspacing="0" cellpadding="0">
						<tbody style = "display:none;">
			                <th style="width:250;" title = "产品名称" name = "name"></th> 
			 				<th style="width:70px;" title = "产品经理" name = "productManager" ></th>
							<th style="width:80px;" title = "产品经理编号" name = "productManagerCode"></th>				
							<th style="width:150px;" title = "创建时间" name = "createdate"></th>
							<th style="width:80px;" title = "风险等级" name = "riskRat" ></th>
							<th style="width:80px;" title = "业务比较基准" name = "ddddd"></th>
							<th style="width:80px;" title = "产品类型" name = "type" type ="date" dictname="acstatus" type="dictType"></th>
							<th style="width:80px;" title = "投资方向" name = "investDirect" dictname="acstatus" type="dictType"></th>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>

	<script src="js/jquery-1.12.0.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script src="lib/rili/laydate.dev.js"></script>
	<script type="text/javascript" src = "js/util.js"></script>
	<script type="text/javascript" src="js/table.js"></script>
    <script type="text/javascript">

    	var tIndex;

    	function getRandom(n){return Math.floor(Math.random()*n+1)};

		var bodyrel="temp"+getRandom(100);
		console.log(bodyrel);
		
		$('body').attr("rel",bodyrel);
		$(window.parent.document).find('.show_iframe').children("iframe").each(function(){
			var tRel=$(this.contentWindow.document).find("body").attr("rel");
			if(tRel==bodyrel){
				tIndex=$(this).attr("src");	
			}
		});

        $(document).ready(function (){
        	//invest_direct
        	$("#investDirect").find("span").click(function(){
        		$("#investDirect").find("span").removeClass("checkActive");
        		$(this).addClass("checkActive");
        		$("input[type='hiden'][name='type']")
        	});//achieveCompare
        	$("#type").find("span").click(function(){
        		$("#type").find("span").removeClass("checkActive");
        		$(this).addClass("checkActive");
        	});
        	$("#achieveCompare").find("span").click(function(){
        		$("#achieveCompare").find("span").removeClass("checkActive");
        		$(this).addClass("checkActive");
        	});
			var eventStart = {  
			        elem: '#data-time',  
			        format: 'YYYY/MM/DD',  
			        min: laydate.now(), 
			        max: '2099-06-16',  
			        istime: true,  
			        istoday: true,  
			        start: laydate.now(0,"YYYY-MM-DD"),  
			        choose: function(enddatas){  
			        	/* activityStart.max = enddatas; //结束日选好后，重置开始日的最大日期  
			        	activity_end_time=enddatas; */
			        }  
			    };
			var eventEnd = {  
			        elem: '#data-time1',  
			        format: 'YYYY/MM/DD',  
			        min: laydate.now(), 
			        max: '2099-06-16',  
			        istime: true,  
			        istoday: true,  
			        start: laydate.now(0,"YYYY-MM-DD"),  
			        choose: function(enddatas){  
			        	/* activityStart.max = enddatas; //结束日选好后，重置开始日的最大日期  
			        	activity_end_time=enddatas; */
			        }  
			    };
			laydate(eventStart);
			laydate(eventEnd);


		 });
		function addingPeople(){
					  parent.layer.open({
				      type: 2,
				      title: '员工搜索',
				      shadeClose: true,
				      shade: 0.2,
				      maxmin: true, //开启最大化最小化按钮
				      area: ['870px', '400px'],
				      content: 'addingPeople.html',
				      success: function(layero,index){
							    console.log(layero);
							    console.log(index);
							    var dd=layero.find('iframe').attr('id');
							    layero.find('iframe').attr('iframe-index',index);
							    console.log(dd);
							    // var cc=dd.html();
							    // console.log(cc);
							  }
				});
				
			};
			function seeInformation(tIndex){
					  parent.layer.open({
				      type: 2,
				      title: '查看相关人员信息',
				      shadeClose: true,
				      shade: 0.2,
				      maxmin: true, //开启最大化最小化按钮
				      area: ['870px', '400px'],
				      content: 'seeJointperson.html'
				});
			};
			function del(tIndex){
					parent.layer.open({
				      type: 2,
				      title: '删除',
				      shadeClose: true,
				      shade: 0.2,
				      maxmin: true, //开启最大化最小化按钮
				      area: ['450px', '250px'],
				      content: 'delete.html'
				    });
				};
	</script>
</body>
</html>